package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserAuth struct {
	Uid            int       `gorm:"column:uid;primaryKey;autoIncrement"` //ID
	LiveCategories int       `gorm:"column:live_categories"`              //直播类型id
	LiveCareer     int       `gorm:"column:live_career"`                  //直播生涯经验1，3个月
	QQ             string    `gorm:"column:qq"`                           //qq号码
	WeChat         string    `gorm:"column:we_chat"`                      //微信
	Desc           string    `gorm:"column:desc"`                         //自我介绍
	RealName       string    `gorm:"column:real_name"`                    //真实姓名
	IdNum          string    `gorm:"column:id_num"`                       //身份证号
	IdCardUrl      string    `gorm:"column:id_card_url"`                  //身份证照片 正面,反面,手持
	SubmitTime     time.Time `gorm:"column:submit_time"`                  //提交时间
	Status         int       `gorm:"column:status"`                       //审核状态:0-审核中,1-审核通过,2-驳回
	RejectReason   string    `gorm:"column:reject_reason"`                //拒绝原因',
	CheckTime      time.Time `gorm:"column:check_time"`                   //审核操作时间',
	Mobile         string    `gorm:"column:mobile"`                       //手机号
	Referrer       string    `gorm:"column:referrer"`                     //推荐人
}

func (UserAuth) TableName() string {
	return fmt.Sprintf("%suser_auth", models.Prefix)
}
